<?php declare(strict_types=1);


namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;


/**
 * app客户端混淆密钥
 * Class MixSecret
 *
 * @since 2.0
 *
 * @Entity(table="mix_secret")
 */
class MixSecret extends Model
{
    /**
     * uuid
     * @Id(incrementing=false)
     * @Column()
     *
     * @var string|null
     */
    private $uuid;

    /**
     * 设备号
     *
     * @Column(name="serial_number", prop="serialNumber")
     *
     * @var string|null
     */
    private $serialNumber;

    /**
     * 创建时间
     *
     * @Column(name="created_at", prop="createdAt")
     *
     * @var int
     */
    private $createdAt;

    /**
     * 混淆字符串
     *
     * @Column(name="mix_secret", prop="mixSecret")
     *
     * @var string
     */
    private $mixSecret;

    /**
     * 更新时间
     *
     * @Column(name="updated_at", prop="updatedAt")
     *
     * @var int
     */
    private $updatedAt;


    /**
     * @param string|null $uuid
     *
     * @return void
     */
    public function setUuid(?string $uuid): void
    {
        $this->uuid = $uuid;
    }

    /**
     * @param string|null $serialNumber
     *
     * @return void
     */
    public function setSerialNumber(?string $serialNumber): void
    {
        $this->serialNumber = $serialNumber;
    }

    /**
     * @param int $createdAt
     *
     * @return void
     */
    public function setCreatedAt(int $createdAt): void
    {
        $this->createdAt = $createdAt;
    }

    /**
     * @param string $mixSecret
     *
     * @return void
     */
    public function setMixSecret(string $mixSecret): void
    {
        $this->mixSecret = $mixSecret;
    }

    /**
     * @param int $updatedAt
     *
     * @return void
     */
    public function setUpdatedAt(int $updatedAt): void
    {
        $this->updatedAt = $updatedAt;
    }

    /**
     * @return string|null
     */
    public function getUuid(): ?string
    {
        return $this->uuid;
    }

    /**
     * @return string|null
     */
    public function getSerialNumber(): ?string
    {
        return $this->serialNumber;
    }

    /**
     * @return int
     */
    public function getCreatedAt(): ?int
    {
        return $this->createdAt;
    }

    /**
     * @return string
     */
    public function getMixSecret(): ?string
    {
        return $this->mixSecret;
    }

    /**
     * @return int
     */
    public function getUpdatedAt(): ?int
    {
        return $this->updatedAt;
    }

}
